import React from 'react';

import Constants from '../../common/Constants';
import CommonSendFetchAction from '../common/CommonSendFetchAction';
import ToastUtils from '../../common/ToastUtils';

export default class JifenMallToSignAction extends CommonSendFetchAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.JIFENMALL;
    this.name = "JifenMallToSignAction";
  }

  finish(responseJson, isSucceed) {
    if (!isSucceed) {
      ToastUtils.show(responseJson.detail);
    }else{
      this.caller.setState({
        viewStatus:responseJson.status,
        mallsign:false,
        mallqiandao:true,
      })
    }
  }
}
